package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.dto.system.SysUserDto;
import com.atguigu.spzx.model.entity.system.SysUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper
public interface SysUserMapper {

    public abstract SysUser selectUserInfoByUserName(String userName);



//    List<SysUser> sysUserList = sysUserMapper.findByPage(sysUserDto) ;
    public abstract  List<SysUser> findByPage(SysUserDto sysUserDto);



    public abstract SysUser findByUserName(String name);
    public abstract void saveSysUser(SysUser sysUser);

    public void updateSysUser(SysUser sysUser);
    // com.atguigu.spzx.manager.mapper.SysUserMapper
    public abstract void deleteById(Long userId);

}
